package top.meeting.room.module.book.services;

import com.jfinal.plugin.activerecord.Record;
import top.meeting.room.common.base.IBaseService;
import top.meeting.room.module.book.forms.ApproveForm;
import top.meeting.room.module.book.forms.BookForm;
import top.meeting.room.module.book.model.Book;
import top.meeting.room.module.book.query.BookQuery;

import java.util.List;

/**
 * Created by Lyt on 2017/9/11.
 */
public interface IBookService extends IBaseService<Book, BookQuery, BookForm> {

    List<Book> findBookList(BookQuery bookQuery);

    List<Book> findRecordByMe (BookQuery bookQuery);

    void approveService(ApproveForm approveForm);

    void bookMeeting(BookForm bookForm);

    void cancel(Long id);
}
